<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>风险管理平台</title>
<link href="dwz/themes/css/login.css" rel="stylesheet" type="text/css" />
</head>

<body>
	<div id="login">
		<div id="login_header">
			<h1 class="login_logo">
				<a href="http://demo.dwzjs.com"><img
					src="dwz/themes/default/images/login_logo.png" /></a>
			</h1>
			<div class="login_headerContent">
				<div class="navList">
					<ul>
						<li><a href="#">设为首页</a></li>
						<li><a href="http://bbs.dwzjs.com">反馈</a></li>
						<li><a href="dwz/doc/dwz-user-guide.pdf" target="_blank">帮助</a></li>
					</ul>
				</div>
				<h2 class="login_title">
					<img src="dwz/themes/default/images/login_title.png" />
				</h2>
			</div>
		</div>
		<div id="login_content">

			<div class="loginForm">


				<form action="login.action" method="post">
					<p>
						<label>用户名：</label> <input type="text" name="username" size="20"
							class="login_input" />
					</p>
					<p>
						<label>密码：</label> <input type="password" name="password"
							size="20" class="login_input" />
					</p>
					<p>
						<label>验证码：</label> <input class="code" name="authcode"
							type="text" size="5" /> <span><img
							src="getAuthCode.action" alt="" width="75" height="24"
							onclick="changeImg(this);" /></span>
					</p>
					<!-- 验证码，账户密码报错信息 -->
					<div>	
						<c:if test="${ sessionScope.loginMsg ne \"用户已登录成功!\" }">				
							<c:out value="${sessionScope.loginMsg}" />	
						</c:if>						
					</div>
					<div class="login_bar">
						<input class="sub" type="submit" value=" " />
					</div>
				</form>


			</div>
			<div class="login_banner">
				<img src="dwz/themes/default/images/face_banner.png" />
			</div>
			<div class="login_main">
				<ul class="helpList">
					<!-- 					<li><a href="#">下载驱动程序</a></li> -->
					<!-- 					<li><a href="#">如何安装密钥驱动程序？</a></li> -->
					<!-- 					<li><a href="#">忘记密码怎么办？</a></li> -->
					<!-- 					<li><a href="#">为什么登录失败？</a></li> -->
				</ul>
				<div class="login_inner">
					<!-- 					<p>您可以使用 网易网盘 ，随时存，随地取</p> -->
					<!-- 					<p>您还可以使用 闪电邮 在桌面随时提醒邮件到达，快速收发邮件。</p> -->
					<!-- 					<p>在 百宝箱 里您可以查星座，订机票，看小说，学做菜…</p> -->
				</div>
			</div>
		</div>
		<div id="login_footer">作者：燃烧的火骷髅，lrf0606，SIMON</div>
	</div>

	<script type="text/javascript">
		//刷新验证码
		//通过img标签的改变src重发请求的特性，达到刷新验证码的效果
		function changeImg(tag) {
			console.log("验证码src改变调用了一次");
			tag.src = "getAuthCode.action?code=" + Math.random();
		}
	</script>
</body>
</html>
